import Vue from 'vue';
import App from './App';
import i18n from './i18n';
import store from './store';
import router from './router';

import '@/amf';
import '@/utils/inject';

/**
 * @author Mas0n
 * @description 开发环境默认使用mock
 */
if (process.env.NODE_ENV === 'development') {
  const { mockXHR } = require('@/utils/static');
  mockXHR();
}

Vue.config.productionTip = false;

new Vue({
  el: '#access-ms-frame',
  i18n,
  store,
  router,
  render: h => h(App),
});
